package com.egghiro.j2se.game.sace.state.actorstate;

import com.egghiro.framework.j2se.game.core.view.canvas.SGraphics;
import com.egghiro.framework.j2se.game.model.element.LinearVelocity2D;
import com.egghiro.j2se.game.sace.model.actor.Flyer;

public class FlyerForwardState extends FlyerState {

    public FlyerForwardState(Flyer flyer, double speed, double angle) {
        this(flyer, new LinearVelocity2D(speed, angle));
    }

    public FlyerForwardState(Flyer flyer, LinearVelocity2D speed) {
        super(flyer, speed);
    }

    @Override
    public final void render(SGraphics g) {
        getFlyer().renderGeneral(g);
    }

    @Override
    public void act() {
        getFlyer().move(this.speed.getDx(), this.speed.getDy());
    }

    @Override
    public void countDown() {
        // TODO Auto-generated method stub

    }

}
